package cn.main.core;

import cn.main.entity.sys.Role;
import cn.main.entity.sys.SysFunction;
import cn.main.entity.sys.User;

import java.util.List;
import java.util.Set;

/**
 * Author: chengwei
 * Date:   2016/5/20
 * Time:   9:01
 */
public class UserSession {
    
    private User user;
    
    private Set<Role> roles;
    
    //公共的构架
    private Set<SysFunction> functions;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }

    public Set<SysFunction> getFunctions() {
        return functions;
    }

    public void setFunctions(Set<SysFunction> functions) {
        this.functions = functions;
    }
}
